package com.xiaoyu.studyworkspace.mapper;

import com.xiaoyu.studyworkspace.common.util.UserCode;
import com.xiaoyu.studyworkspace.pojo.User;
import com.xiaoyu.studyworkspace.pojo.UserRelation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    public List<User> selectAllUser();

    public void insertUser(User user);

    public User selectUserById(@Param("relationInfo") String relationInfo);

    public List<UserRelation> selectUserCode(@Param("user_id") int user_id);

    public void insertUserCode(UserRelation userRelation);
}
